import request from '@/utils/request'

// 查询日批失败借据列表
export function listDateBatchFailLoan(query) {
    return request({
        url: '/business/DateBatchFailLoan/list',
        method: 'get',
        params: query
    })
}

// 查询日批失败借据详细
export function getDateBatchFailLoan(id) {
    return request({
        url: '/business/DateBatchFailLoan/' + id,
        method: 'get'
    })
}

// 新增日批失败借据
export function addDateBatchFailLoan(data) {
    return request({
        url: '/business/DateBatchFailLoan',
        method: 'post',
        data: data
    })
}

// 修改日批失败借据
export function updateDateBatchFailLoan(data) {
    return request({
        url: '/business/DateBatchFailLoan',
        method: 'put',
        data: data
    })
}

// 删除日批失败借据
export function delDateBatchFailLoan(id) {
    return request({
        url: '/business/DateBatchFailLoan/' + id,
        method: 'delete'
    })
}

// 导出日批失败借据
export function exportDateBatchFailLoan(query) {
    return request({
        url: '/business/DateBatchFailLoan/export',
        method: 'get',
        params: query
    })
}